package sgi.message;

import java.util.List;

import sgi.details_new.AccountInfoDetails;
import sgi.user.User;
/** Message of retrieving the account info in account info details */
@SuppressWarnings("serial")
public class MessageViewInfo extends Message {
	private List<AccountInfoDetails> accountInfo;
	private String UserName;
	public MessageViewInfo(User user ) {
		super("select * from customers where username='"+ user.getUsername() + "'");
		setUserName(user.getUsername());
	}

	public List<AccountInfoDetails> getAccountInfo() {
		return accountInfo;
	}

	public void setAccountInfo(List<AccountInfoDetails> accountInfo) {
		this.accountInfo = accountInfo;
	}

	public String getUserName() {
		return UserName;
	}

	public void setUserName(String userName) {
		UserName = userName;
	}
}
